package model

import "time"

type Basket struct {
	BasketId           uint      `gorm:"primary_key;AUTO_INCREMENT;comment:主键" json:"basketId"`                     //主键
	ShopId             uint      `gorm:"type:bigint;not null;comment:店铺ID" json:"-"`                 //店铺ID
	ProdId             uint      `gorm:"not null;comment:商品ID" json:"prodId"`                        //商品ID
	SkuId              uint      `gorm:"not null;comment:skuId" json:"skuId"`                        //SkuID
	UserId             string    `gorm:"type:VARCHAR(50);not null;comment:用户ID" json:"userId"`       //用户ID
	BasketCount        uint      `gorm:"not null;comment:购物车产品个数" json:"basketCount"`                //购物车产品个数
	BasketDate         time.Time `gorm:"type:VARCHAR(50);not null;comment:购物时间" json:"basketDate"`   //购物时间
	DiscountId         int       `json:"discountId"`                                                 //满减活动ID
	DistributionCardNo string    `gorm:"type:VARCHAR(36);comment:分销推广人卡号" json:"distributionCardNo"` //分销推广人卡号
}
